UNPKG

marko

Version:

UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.

13 lines (9 loc) 318 B
import { types as t } from "@marko/compiler"; import write from "../util/vdom-out-write"; import withPreviousLocation from "../util/with-previous-location"; export default function (path) { const { node } = path; path.replaceWith( withPreviousLocation(write("t", t.stringLiteral(node.value)), node), ); }